# 设置cmake最低版本
cmake_minimum_required(VERSION 3.4.1)

# 添加ffmpeg库
add_library(ffmpeg SHARED IMPORTED)
set_target_properties(ffmpeg
        PROPERTIES IMPORTED_LOCATION
        ${CMAKE_SOURCE_DIR}/../jniLibs/${ANDROID_ABI}/libffmpeg.so)

# 添加yuv库
add_library(yuv SHARED IMPORTED)
set_target_properties(yuv
        PROPERTIES IMPORTED_LOCATION
        ${CMAKE_SOURCE_DIR}/../jniLibs/${ANDROID_ABI}/libyuv.so)

# 添加include目录路径
include_directories(ffmpeg)

# FFmpeg命令行库
add_subdirectory(${CMAKE_SOURCE_DIR}/FFCommand)

add_subdirectory(${CMAKE_SOURCE_DIR}/Metadata)
